package web.banco;

import web.prototype.DatabaseProto1;

public class DatabaseProvider {

	private DatabaseInterface database;
	
	private static DatabaseProvider instance;

	private DatabaseProvider()
	{
		//this.database = new DatabaseProto1(); 
		this.database = new DatabaseDerby();
	}
	
	public static DatabaseProvider getInstance()
	{
		if (instance == null)
		{
			instance = new DatabaseProvider();
		}
		return instance;
	}
	
	public DatabaseInterface getDatabase() {
		return database;
	}

	
}
